#ifndef _AIRPORT_
#define _AIRPORT_

#include <iostream>
#include <sstream>
#include <iomanip>
#include <fstream>
#include <cmath>

#include "Utility.h"

class Airport
{
public:		
	std::string logLine() const;
	std::string name() const;
	std::string suf() const;
	std::string id() const;
	double latitude() const;
	double longitude() const;
	double localFlights() const;
	double localHours() const;
	double xcFlights() const;
	double xcHours() const;
	std::string firstDate() const;
	std::string lastDate() const;
	std::string localFirstDate() const;
	std::string localLastDate() const;
		
	//void setAirport(std::string logLine, std::string id, std::string name, std::string newAirport_Suf, double latitude, double longitude);
	void addLocal(std::string Date, double newLocalHours);
	void addXc(std::string Date, double newXcHours);   
			
	Airport();
	Airport(std::istringstream& airports_file);
	~Airport();

private:
	std::string _logLine;
	std::string _id;
	std::string _name;
	std::string _suf;
	double _latitude;
	double _longitude;
	double _localFlights;
	double _localHours;
	double _xcFlights;
	double _xcHours;
	std::string _firstDate;
	std::string _lastDate;
	std::string _localFirstDate;
	std::string _localLastDate;
};

#endif